package com.xbongbong.callback.constant;

import lombok.Getter;
import lombok.Setter;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * T+配置
 */
@Getter
@Setter
@Component
public class TplusConfig {
    @Resource
    private Environment env;
    /**
     * 畅捷通的销帮帮回调地址
     * 本地：http://160404h58x.zicp.vip:44542/xbb/callback
     * 测试：http://tplusdatasync.xbongbong.com.cn/xbb/callback
     * 正式：
     */
    private String BACK_URL_FOR_TPLUS;

    @PostConstruct
    public void readConfig() {
        BACK_URL_FOR_TPLUS = env.getProperty("com.xbongbong.tplus.callback.url");
    }
}
